export const defaultEdge = {
  shape: "edge",
  attrs: {
    line: {
      stroke: "#A2B1C3",
      targetMarker: {name: "block", width: 12, height: 8},
    },
  },
  id: "72a288b6-5387-4565-9b51-0ef8ca3ed0e1",
  zIndex: 0,
  source: {
    cell: "09912ecb-1546-4508-9809-688abb1979f2",
    port: "0267f266-a6b7-4377-8ad5-7f94bd3ba7b7",
  },
  target: {
    cell: "2affe75b-6c64-4647-b560-d75a0a77e57b",
    port: "fb416c3b-2bca-4a22-8912-ad32bc433017",
  },
}
export const startInfo = {
  position: {x: 20, y: 15.5},
  size: {width: 45, height: 45},
  attrs: {text: {text: "开始"}},
  visible: true,
  shape: "custom-start",
  ports: {
    groups: {
      top: {
        position: "top",
        attrs: {
          circle: {
            r: 4,
            magnet: true,
            stroke: "#5F95FF",
            strokeWidth: 1,
            fill: "#fff",
            style: {visibility: "hidden"},
          },
        },
      },
      right: {
        position: "right",
        attrs: {
          circle: {
            r: 4,
            magnet: true,
            stroke: "#5F95FF",
            strokeWidth: 1,
            fill: "#fff",
            style: {visibility: "hidden"},
          },
        },
      },
      bottom: {
        position: "bottom",
        attrs: {
          circle: {
            r: 4,
            magnet: true,
            stroke: "#5F95FF",
            strokeWidth: 1,
            fill: "#fff",
            style: {visibility: "hidden"},
          },
        },
      },
      left: {
        position: "left",
        attrs: {
          circle: {
            r: 4,
            magnet: true,
            stroke: "#5F95FF",
            strokeWidth: 1,
            fill: "#fff",
            style: {visibility: "hidden"},
          },
        },
      },
      absolute: {
        position: "absolute",
        attrs: {
          circle: {
            r: 6,
            magnet: true,
            stroke: "#008CFF",
            strokeWidth: 2,
            fill: "#fff",
          },
        },
      },
    },
    items: [
      {group: "top", id: "809e03c8-d608-4d9d-a8f2-6948b6aa8d3d"},
      {group: "right", id: "0267f266-a6b7-4377-8ad5-7f94bd3ba7b7"},
      {group: "bottom", id: "6971d70d-f68e-48af-987d-e13b6778c251"},
      {group: "left", id: "7c5ebd56-7e64-495d-89bb-2d35af1f8722"},
    ],
  },
  id: "09912ecb-1546-4508-9809-688abb1979f2",
  data: {type: "start", relationship: ['from-soap', 'from-rest', 'from-jms','controller-choice-closed']},
  zIndex: 1,
}
export const endInfo = {
  position: {x: 20, y: 200},
  size: {width: 45, height: 45},
  attrs: {text: {text: "结束"}},
  visible: true,
  shape: "custom-end",
  ports: {
    groups: {
      top: {
        position: "top",
        attrs: {
          circle: {
            r: 4,
            magnet: true,
            stroke: "#5F95FF",
            strokeWidth: 1,
            fill: "#fff",
            style: {visibility: "hidden"},
          },
        },
      },
      right: {
        position: "right",
        attrs: {
          circle: {
            r: 4,
            magnet: true,
            stroke: "#5F95FF",
            strokeWidth: 1,
            fill: "#fff",
            style: {visibility: "hidden"},
          },
        },
      },
      bottom: {
        position: "bottom",
        attrs: {
          circle: {
            r: 4,
            magnet: true,
            stroke: "#5F95FF",
            strokeWidth: 1,
            fill: "#fff",
            style: {visibility: "hidden"},
          },
        },
      },
      left: {
        position: "left",
        attrs: {
          circle: {
            r: 4,
            magnet: true,
            stroke: "#5F95FF",
            strokeWidth: 1,
            fill: "#fff",
            style: {visibility: "hidden"},
          },
        },
      },
      absolute: {
        position: "absolute",
        attrs: {
          circle: {
            r: 6,
            magnet: true,
            stroke: "#008CFF",
            strokeWidth: 2,
            fill: "#fff",
          },
        },
      },
    },
    items: [
      {group: "top", id: "62724770-28a3-4a97-b78a-f590b03f0799"},
      {group: "right", id: "e74fe884-a74d-45ce-9acf-632837d80531"},
      {group: "bottom", id: "4acc1ba5-a8c0-4ad9-8991-fac426d214ed"},
      {group: "left", id: "45861a88-6a3f-44b4-8903-c054845ba6e3"},
    ],
  },
  id: "0848a3a1-465b-4c79-a359-2c8aa3c12af3",
  data: {type: "end" , relationship: []},
  zIndex: 3,
};
export const soapInfo = {
  position: {x: 140, y: 20},
  size: {width: 66, height: 36},
  attrs: {
    '.name': {text: '端点'},
    '.rank': {text: 'SOAP'}
  },
  visible: true,
  shape: "custom-endpoint",
  ports: {
    groups: {
      top: {
        position: "top",
        attrs: {
          circle: {
            r: 4,
            magnet: true,
            stroke: "#5F95FF",
            strokeWidth: 1,
            fill: "#fff",
            style: {visibility: "hidden"},
          },
        },
      },
      right: {
        position: "right",
        attrs: {
          circle: {
            r: 4,
            magnet: true,
            stroke: "#5F95FF",
            strokeWidth: 1,
            fill: "#fff",
            style: {visibility: "hidden"},
          },
        },
      },
      bottom: {
        position: "bottom",
        attrs: {
          circle: {
            r: 4,
            magnet: true,
            stroke: "#5F95FF",
            strokeWidth: 1,
            fill: "#fff",
            style: {visibility: "hidden"},
          },
        },
      },
      left: {
        position: "left",
        attrs: {
          circle: {
            r: 4,
            magnet: true,
            stroke: "#5F95FF",
            strokeWidth: 1,
            fill: "#fff",
            style: {visibility: "hidden"},
          },
        },
      },
      absolute: {
        position: "absolute",
        attrs: {
          circle: {
            r: 6,
            magnet: true,
            stroke: "#008CFF",
            strokeWidth: 2,
            fill: "#fff",
          },
        },
      },
    },
    items: [
      {group: "top", id: "a6d1a6a4-c2f0-442c-9420-5141d0725467"},
      {group: "right", id: "35b7fcea-5ce5-4700-9720-a3bcf895c7c6"},
      {group: "bottom", id: "23e072f6-3871-4636-a15c-3b707b0cf239"},
      {group: "left", id: "fb416c3b-2bca-4a22-8912-ad32bc433017"},
    ],
  },
  id: "2affe75b-6c64-4647-b560-d75a0a77e57b",
  data: {type: "from-soap", relationship: ['to-soap', 'processor-SoapXmlToJson', 'controller-choice','controller-multicast','controller-choice-closed']},
  zIndex: 2,
};
export const restfulInfo = {
  position: {x: 140, y: 20},
  size: {width: 66, height: 36},
  attrs: {
    '.name': {text: '端点'},
    '.rank': {text: 'Restful'}
  },
  visible: true,
  shape: "custom-endpoint",
  ports: {
    groups: {
      top: {
        position: "top",
        attrs: {
          circle: {
            r: 4,
            magnet: true,
            stroke: "#5F95FF",
            strokeWidth: 1,
            fill: "#fff",
            style: {visibility: "hidden"},
          },
        },
      },
      right: {
        position: "right",
        attrs: {
          circle: {
            r: 4,
            magnet: true,
            stroke: "#5F95FF",
            strokeWidth: 1,
            fill: "#fff",
            style: {visibility: "hidden"},
          },
        },
      },
      bottom: {
        position: "bottom",
        attrs: {
          circle: {
            r: 4,
            magnet: true,
            stroke: "#5F95FF",
            strokeWidth: 1,
            fill: "#fff",
            style: {visibility: "hidden"},
          },
        },
      },
      left: {
        position: "left",
        attrs: {
          circle: {
            r: 4,
            magnet: true,
            stroke: "#5F95FF",
            strokeWidth: 1,
            fill: "#fff",
            style: {visibility: "hidden"},
          },
        },
      },
      absolute: {
        position: "absolute",
        attrs: {
          circle: {
            r: 6,
            magnet: true,
            stroke: "#008CFF",
            strokeWidth: 2,
            fill: "#fff",
          },
        },
      },
    },
    items: [
      {group: "top", id: "a6d1a6a4-c2f0-442c-9420-5141d0725467"},
      {group: "right", id: "35b7fcea-5ce5-4700-9720-a3bcf895c7c6"},
      {group: "bottom", id: "23e072f6-3871-4636-a15c-3b707b0cf239"},
      {group: "left", id: "fb416c3b-2bca-4a22-8912-ad32bc433017"},
    ],
  },
  id: "2affe75b-6c64-4647-b560-d75a0a77e57b",
  data: {type: "from-rest", relationship: ['to-rest','to-dataset', 'processor-JsonToSoapXml', 'processor-RawToFormData','processor-ParamBuilderJson', 'controller-choice','controller-multicast','controller-choice-closed']},
  zIndex: 2,
};
export const jmsInfo = {
  position: {x: 140, y: 20},
  size: {width: 66, height: 36},
  attrs: {
    '.name': {text: '端点'},
    '.rank': {text: 'JMS'}
  },
  visible: true,
  shape: "custom-endpoint",
  ports: {
    groups: {
      top: {
        position: "top",
        attrs: {
          circle: {
            r: 4,
            magnet: true,
            stroke: "#5F95FF",
            strokeWidth: 1,
            fill: "#fff",
            style: {visibility: "hidden"},
          },
        },
      },
      right: {
        position: "right",
        attrs: {
          circle: {
            r: 4,
            magnet: true,
            stroke: "#5F95FF",
            strokeWidth: 1,
            fill: "#fff",
            style: {visibility: "hidden"},
          },
        },
      },
      bottom: {
        position: "bottom",
        attrs: {
          circle: {
            r: 4,
            magnet: true,
            stroke: "#5F95FF",
            strokeWidth: 1,
            fill: "#fff",
            style: {visibility: "hidden"},
          },
        },
      },
      left: {
        position: "left",
        attrs: {
          circle: {
            r: 4,
            magnet: true,
            stroke: "#5F95FF",
            strokeWidth: 1,
            fill: "#fff",
            style: {visibility: "hidden"},
          },
        },
      },
      absolute: {
        position: "absolute",
        attrs: {
          circle: {
            r: 6,
            magnet: true,
            stroke: "#008CFF",
            strokeWidth: 2,
            fill: "#fff",
          },
        },
      },
    },
    items: [
      {group: "top", id: "a6d1a6a4-c2f0-442c-9420-5141d0725467"},
      {group: "right", id: "35b7fcea-5ce5-4700-9720-a3bcf895c7c6"},
      {group: "bottom", id: "23e072f6-3871-4636-a15c-3b707b0cf239"},
      {group: "left", id: "fb416c3b-2bca-4a22-8912-ad32bc433017"},
    ],
  },
  id: "2affe75b-6c64-4647-b560-d75a0a77e57b",
  data: {type: "from-jms", relationship: ['to-jms','controller-choice-closed']},
  zIndex: 2,
};
